

<template>
  <div class="box">
    <div class="mainbox">
      <div class="titlebox">
        <h1>游戏结束</h1>
      
      </div>
        <div class="btnbox">
            <button @click="gotoDongPage"><h2>重新开始游戏</h2> </button>
        </div>
    </div>
  </div>
</template>
<script>
export default {
  methods: {
    gotoDongPage() {
      this.$router.push("/doing");
    },
  },
};
</script>
<style lang="less"  scoped >
.box {
  height: 100vh;
  width: 100vw;
  background-color: green;
  display: flex;
  align-items: center;
}
.mainbox {
  margin: 0 auto;
  border-radius: 30px;
  background-color: whitesmoke;
  width: 30%;
  height: 30%;

 
text-align: center;

}
.titlebox{
 
 h1{
     font-size: 50px;
  color: chocolate;
 }
}
</style>